package com.koron.order.risk.base.mapper;

import com.koron.order.risk.base.bean.po.LineRiskChange;
import com.koron.order.risk.base.bean.po.LineRiskChangeMeasure;
import com.koron.order.risk.base.bean.vo.LineRiskChangeVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LineRiskChangeMapper {
    LineRiskChangeVO getRiskMeasureById(@Param("id") String id);

    List<LineRiskChange> list(LineRiskChange lineRiskChange);

    int saveOrUpdateChangeMeasure(@Param("list") List<LineRiskChangeMeasure> lineRiskChangeMeasures);

    int saveOrUpdate(LineRiskChange lineRiskChange);

    int delete(@Param("id") String id);

    int updateStatus(@Param("id") String id, @Param("status") Integer status);

    @MapKey(value = "id")
    List<Map<String, Object>> getAllMeasureById(String id);
}
